/**
 * Created by JuntaoYi
 * Date 2020/3/30
 */
import React, { Component }from 'react';
import ClistItem from '../c-list-item'

class CList extends Component {
    constructor(props) {
        super(props);
    }
    render() {
        const listItems = this.props.numbers.map((num) => {
            return <ClistItem value={num} key={num}></ClistItem>
        })
        return (
            <ul>{listItems}</ul>
        )
    }
}

export default CList;
